#include "CommonInstanceSet1.h"

CommonInstanceSet1  *g_pCommonInstanceSet1 = NULL;

CommonInstanceSet1::CommonInstanceSet1()
    : m_sAppPath(""),
      m_pSysCfg(NULL)
{

    m_sAppPath = "./";
    m_pSysCfg = new SysCfg1();

#ifdef WIN32
    m_pSysCfg->LoadFrom("C:/css/config/SysCfg.xml");
#else
    m_pSysCfg->LoadFrom("/usr/lib/css/config/SysCfg.xml");
#endif
}

CommonInstanceSet1::~CommonInstanceSet1()
{
    SAFE_DELETE(m_pSysCfg);
}

QString CommonInstanceSet1::GetAppPath(void) const
{
    return m_sAppPath;
}

SysCfg1 *CommonInstanceSet1::GetSysCfg() const
{
    return m_pSysCfg;
}


